﻿using KWT.DRG_DIP.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KWT.DRG_DIP.PO.QC
{
    /// <summary>
    /// 质控错误信息
    /// </summary>
    public class Sys_QC_Err
    {
        [Key]
        public string ErrID { get; set; }
        /// <summary>
        /// 错误编码
        /// </summary>
        public string ErrCode { get; set; }
        /// <summary>
        /// 1:强制 2：疑似
        /// </summary>
        public int Type { get; set; }
        /// <summary>
        /// 信息提示
        /// </summary>
        public string Msg { get; set; }
        /// <summary>
        /// 是否编码错误
        /// </summary>
        public bool IsCodeErr
        {
            get { return !ErrCode[..2].ToUpper().Equals("SY"); }
            protected set { }
        }
        /// <summary>
        /// 分值
        /// </summary>
        public decimal Score { get; set; }
    }
}
